package com.ss.whisper2.service.impl;

import com.ss.whisper2.dao.ArticleDao;
import com.ss.whisper2.pojo.entity.Article;
import com.ss.whisper2.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.AsyncResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.concurrent.Future;

@Service
public class ArticleServiceImpl implements ArticleService {
	@Resource
	ArticleDao articleDao;
	@Override
	public List<Article> getArticles() {
		return articleDao.getArticles();
	}

	@Override
	public Article getArticleById(Integer id) {
		return articleDao.getArticleById(id);
	}
}
